﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DDBuildTools.DataAccess
{
    public interface IDataBaseFactory
    {
        IDataBase CreateDataBase();
    }

    public class AccessDataBaseFactory : IDataBaseFactory
    {
        public IDataBase CreateDataBase()
        {
            return new AccessDB();
        }
    }

    public class MsSql2000DataBaseFactory : IDataBaseFactory
    {
        public IDataBase CreateDataBase()
        {
            return new MsSql2000();
        }
    }

    public class MsSql2005DataBaseFactory : IDataBaseFactory
    {
        public IDataBase CreateDataBase()
        {
            return new MsSql2005();
        }
    }

}
